package com.service.provider;

import com.dao.provider.ProviderMapper;
import com.javabean.Provider;

import java.util.List;

public class ProviderServiceImpl implements ProviderService {

    private ProviderMapper providerMapper;

    public void setProviderMapper(ProviderMapper providerMapper) {
        this.providerMapper = providerMapper;
    }

    @Override
    public int add(Provider provider) {
        return 0;
    }

    @Override
    public List<Provider> getProviderList(String proName, String proCode) {
        return providerMapper.getProviderList(proName, proCode);
    }

    @Override
    public List<Provider> getProvider2List() {
        return providerMapper.getProvider2List();
    }

    @Override
    public int deleteProviderById(Integer delId) {
        return providerMapper.deleteProviderById(delId);
    }

    @Override
    public Provider getProviderById(String id) {
        return null;
    }

    @Override
    public int modify(Provider provider) {
        return 0;
    }
}
